-- GENERATED SPELL FOR [Firjus the Soul Crusher] --


function spell0_24213(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24213', 633, 1)
end

function spell1_24213(pUnit, Event) --@Head Crush,n/a--
pUnit:FullCastSpellOnTarget(43348,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24213', 1335, 1)
end

function Sorts_24213(pUnit, Event)
local choix_sorts_24213 = math.random(0, 1)
if choix_sorts_24213 == 0 then
pUnit:RegisterEvent('spell0_24213', 1, 1)
end
if choix_sorts_24213 == 1 then
pUnit:RegisterEvent('spell1_24213', 1, 1)
end
end

function mob24213_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24213', math.random(1500, 3000), 1)
end

function mob24213_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24213_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24213_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24213, 1, 'mob24213_Action')
RegisterUnitEvent(24213, 2, 'mob24213_Leave')
RegisterUnitEvent(24213, 3, 'mob24213_Kill')
RegisterUnitEvent(24213, 4, 'mob24213_Die')
